package com.mspbots.web.params;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.Set;

/**
 * com.mspbots.web.security.registerRequest
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserParam {

    @NotEmpty
    private String username;
    @NotEmpty
    private String password;
    @NotEmpty
    private Integer tenantId;
    @NotEmpty
    private String email;
    @NotEmpty
    private Set<String> roles;
    private Boolean enable;

    private String firstName;
    private String lastName;

    private Long managerUserId;

}
